/*-------------------------------------------------------------------------

***************** Modification History ***********************************
   @doc
   @module custoper.h - Header file for Logo Display functions |
   @end
   
$Log: /SoftPay/SPK2SIM/Source/Include/custoper.h $ 
 * 
 * 5     3/20/00 8:17p Vipin_k1
 * Added the custom Tip entry function
 * 
 * 4     3/20/00 3:37p Vipin_k1
 * Added custom functions for Total amount computation and display
 * 
 * 3     3/20/00 2:14p Vipin_k1
 * Added custom functions for the base amount entry
 * 
 * 2     3/18/00 11:23p Vipin_k1
 * Added the custom operations functions for the init of display and the
 * custom logo display
 * 
 * 1     3/18/00 2:50p Vipin_k1
 * Created for the Prototypes of the custom operations functions

**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/

#ifndef CUSTOPER_H
#define CUSTOPER_H

#include <transact.h>

#define CUST_FIRST_COL_G2                           1       // The first col
#define CUST_FIRST_COL_G1                           1
#define CUST_FIRST_COL_G0                           1

#define CUST_SCROLL_START_ROW_G2                    2       // where to start deleting the lines.
#define CUST_SCROLL_START_ROW_G1                    2
#define CUST_SCROLL_START_ROW_G0                    3

//extern int inCustDisplayAtInit(void);
extern int inCustomDisplayLogo(TRANSACTION_OBJECT* pobTran);
extern int inCustGetBaseAmount(TRANSACTION_OBJECT* pobTran);
extern void vdCustScroll(void);
extern void vdCustCalculateCoord(int inType,int* inCol,int* inRow);
extern int inCustGetAmount(char* szAmount,long lnMin,long lnMax,char* szDisplaySymbol,long lnMsgId);
extern int inAdjCustGetAmount(char* szAmount,long lnMin,long lnMax,char* szDisplaySymbol,long lnMsgId,TRANSACTION_OBJECT* pobTran);
extern void vdCustDisplayErrorString(char* szErrorString);
extern void vdCustDisplayWarningString(char* szString);
extern void vdCustDisplayStatusString(char* szString);
extern void vdCustDisplayMessageFromFile(long lnMessageIndex,int inMsgType);
extern void vdCustDisplayPrompt(long lnMsgId,VS_BOOL fScroll);
extern void vdCustDispTotAmount(char* pszAmount);
extern int inCustComputeAndDispTotal(TRANSACTION_OBJECT* pobTran);
extern int inCustGetTip(TRANSACTION_OBJECT* pobTran);
//extern int inCustAboutFileProcessing(void);
extern VS_BOOL fGetReversal(TRANSACTION_OBJECT* pobTran);
extern VS_BOOL fGetOffline(TRANSACTION_OBJECT* pobTran);
extern VS_BOOL fGetCheckFloorLimit(TRANSACTION_OBJECT* pobTran);
extern void vdSetOffline(TRANSACTION_OBJECT* pobTran,VS_BOOL param);
#endif

